@extends('layouts.app')

@section('title', '认证列表')

@section('css-import')

<link rel="stylesheet" href="{{config('app.inlet_src')}}/assets/css/baguetteBox.min.css">

@endsection

@section('content-fluid')
<div class="row">
	<!-- BASIC TABLE -->
	<div class="panel">
		<div class="panel-heading">
			<h3 class="panel-title">商户认证</h3>
		</div>
		<div class="panel-body">
			@if($licens->count() > 0)
			<table class="table table-hover">
				<thead>
					<tr>
						<th>#</th>
						<th>认证商户</th>
						<th>提交时间</th>
						<th>手机号</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					@foreach($licens as $k=>$v)
					<tr>
						<td>1</td>
						<td>{{$v->nicename ?? '未填写'}}</td>
						<td>{{$v->update_time==''?date('Y-m-d H:i',$v->insert_time):date('Y-m-d H:i',$v->update_time)}}</td>
						<td>{{$v->tel}}</td>
						<td>
							@if($v->identity_confirm==0)
							<a href="/userIdentification/{{$v->users_id}}" class="label label-default">身份证认证审核</a>
							@endif
							@if($v->business_confirm==0)
							<a href="/userBusinessaction/{{$v->users_id}}" class="label label-default">营业执照认证审核</a>
							@endif
							@if($v->foodpermit_confirm==0)
							<a href="/userFoodpermitaction/{{$v->users_id}}" class="label label-default">食品安全认证审核</a>
							@endif
						</td>
					</tr>
					@endforeach
				</tbody>
			</table>
			@else
			<h3>暂无认证</h3>
			@endif
		</div>
	</div>
	<!-- END BASIC TABLE -->
</div>

@endsection

@section('js-import')
<script type="text/javascript" src="{{config('app.inlet_src')}}/assets/js/baguetteBox.min.js"></script>
@endsection

@section('js-write')
<script type="text/javascript">
	baguetteBox.run('.tz-gallery');
</script>
@endsection